const router = require('koa-router')()
const path = require('path')


router.get('/', async (ctx, next) => {
  await ctx.render('index', {
    title: '生鲜购物'
  })
})

const Users = require('./users')
router.use('/user',Users.routes(),Users.allowedMethods())

const Goods = require('./goods')
router.use('/goods',Goods.routes(), Goods.allowedMethods())

const Order = require('./order')
router.use('/order',Order.routes(), Order.allowedMethods())







module.exports = router
